package git.soulbgm.controller;

import git.soulbgm.mapper.UserMapper;
import git.soulbgm.pojo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 用户控制器
 *
 * @author SoulBGM
 * @date 2023-03-28
 */
@RestController
public class UserController {

    @Resource
    private UserMapper mapper;

    @GetMapping("list")
    public List<User> list() {
        return mapper.selectList(null);
    }

}
